<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>YOU - Edit Profile</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>

<body>
<div class="container">
    <?php
        include 'header2.php';
		
		require_once('config.php');
    	$user_id = $_COOKIE['id_active'];
    ?>
    <div class="content">
    	<div class="headcontent">
            <span class="randomtext" style="margin-left:50px">Hi, <?php
																	$sql="SELECT fullname FROM user WHERE iduser='$user_id'";
																	$result=mysql_query($sql);
																	while($res = mysql_fetch_array($result))
																	{
																		$nama = $res['fullname'];
																	}
																	echo $nama; 
																?></span>
            <span class="randomtext" style="padding-left:850px">EDIT PROFILE</span>
        	<hr/>
        </div>
    	<div class="singlecontent" style="width:650px">
            <div>
                <form method="post" enctype="multipart/form-data">
                    <div class="items">
                        <label>Full Name</label>
                        <input type="text" name="fullname"/>
                        <span class="validationtext" id="u_fname"></span>
                    </div>
                    <div class="items">
                        <label>Password</label>
                        <input type="password" name="password"/>
                        <span class="validationtext" id="u_pwd"></span>
                    </div>
                    <div class="items">
                        <label> Confirm Pwd</label>
                        <input type="password" name="confirmpwd"/>
                        <span class="validationtext" id="u_pwd2"></span>
                    </div>
                    <div class="items">
                        <label>Birth Date</label>
                        <input type="text" name="tgl_lahir"/>
                        <span class="validationtext" id="u_tgllahir"></span>
                    </div>
                    <div class="items">
                        <label>Email</label>
                        <input type="text" name="email"/>
                        <span class="validationtext" id="u_email"></span>
                    </div>
                    <div class="items">
                        <label>Gender</label>
                        <input type="radio" name="gender" value="P" checked="checked">Pria
                        <input type="radio" name="gender" value="W">Wanita
                        <br/>
                    </div>
                    <div class="items">
                        <label>Location</label>
                        <input type="text" name="kota"/>
                        <span class="validationtext" id="u_kota"></span>
                    </div>
                    <div class="items">
                        <label>Profile Picture</label>
                        <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
                        <input type="file" name="profpic" /><br/>
                        <span class="validationtext" id="u_profpic"></span>
                    </div>
                    <div style="margin-left:150px">
                        <button type="submit">Save Changes</button>
                    </div>
                </form>
            </div>
    	</div>
    </div>
    <div class="footer"></div>
</div>
</body>
</html>
